package com.tsmti.system.entity;

import com.tsmti.core.common.entity.BaseDataEntity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * path：com.tsmti.lab.entity
 * time: 2018/7/2 11:42
 * Description:
 * @author ft
 */
@Entity
@Table(name = "PIMS_MESSAGE")
public class Message extends BaseDataEntity<Long> {
    private static final long serialVersionUID = -6805725185842225920L;
    /**
     * id
     */
    private Long id;
    /**
     * 消息标题
     */
    private String msgTitle;
    /**
     * 消息内容
     */
    private String msgContent;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 执行程序
     */
    private String execute;
    /**
     * 发送人
     */
    private String sender;
    /**
     * 发送时间
     */
    private Date sendTime;
    /**
     * 链接地址
     */
    private String msgUrl;
    /**
     * 参数
     */
    private String msgParameter;
    /**
     * 接收人类型 1 输血科 2医生 3护士
     */
    private Integer receiverType;
    /**
     * 接收人
     */
    private String receiver;
    /**
     * 状态 0 发送 1确认 2 执行完毕
     */
    private Integer status;
    /**
     * 确认时间
     */
    private Date operateTime;
    /**
     * 接收科室
     */
    private String receiveDepart;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 优先级
     */
    private Integer priority;
    /**
     * 耗时分钟
     */
    private String minute;
    /**
     * 备注
     */
    private String remark;


    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PIMS_MESSAGE")
    @SequenceGenerator(name = "SEQ_PIMS_MESSAGE", sequenceName = "MESSAGE_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "MSGTITLE")
    public String getMsgTitle() {
        return msgTitle;
    }

    public void setMsgTitle(String msgTitle) {
        this.msgTitle = msgTitle;
    }

    @Basic
    @Column(name = "MSGCONTENT")
    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    @Basic
    @Column(name = "TYPE")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Basic
    @Column(name = "EXECUTE")
    public String getExecute() {
        return execute;
    }

    public void setExecute(String execute) {
        this.execute = execute;
    }

    @Basic
    @Column(name = "SENDER")
    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    @Basic
    @Column(name = "SENDTIME")
    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    @Basic
    @Column(name = "MSGURL")
    public String getMsgUrl() {
        return msgUrl;
    }

    public void setMsgUrl(String msgUrl) {
        this.msgUrl = msgUrl;
    }

    @Basic
    @Column(name = "MSGPARAMETER")
    public String getMsgParameter() {
        return msgParameter;
    }

    public void setMsgParameter(String msgParameter) {
        this.msgParameter = msgParameter;
    }

    @Basic
    @Column(name = "RECEIVETYPE")
    public Integer getReceiverType() {
        return receiverType;
    }

    public void setReceiverType(Integer receiverType) {
        this.receiverType = receiverType;
    }

    @Basic
    @Column(name = "RECEIVER")
    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    @Basic
    @Column(name = "STATUS")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "OPERATETIME")
    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    @Basic
    @Column(name = "RECEIVEDEPART")
    public String getReceiveDepart() {
        return receiveDepart;
    }

    public void setReceiveDepart(String receiveDepart) {
        this.receiveDepart = receiveDepart;
    }

    @Basic
    @Column(name = "MOBILE")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Basic
    @Column(name = "PRIORITY")
    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    @Basic
    @Column(name = "MINUTE")
    public String getMinute() {
        return minute;
    }

    public void setMinute(String minute) {
        this.minute = minute;
    }

    @Basic
    @Column(name = "REMARK")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
